package com.xnyzc.lhy.common.penum.comment;

/**
 * 是否显示评价
 * zhuyubin
 */
public enum EEvaluationIsShow {

    no(0, "否"),
    yes(1, "是");

    private Integer value;

    private String desc;

    EEvaluationIsShow(Integer value, String desc){
        this.value = value;
        this.desc = desc;
    }

    public static EEvaluationIsShow findById(Integer type) {
        EEvaluationIsShow[] values = EEvaluationIsShow.values();
        for (EEvaluationIsShow value : values) {
            if (value.value.equals(type)) {
                return value;
            }
        }
        return null;
    }

    public Integer getValue() {
        return this.value;
    }

    public String getDesc() {
        return this.desc;
    }
}
